import service from '@/utils/request'

// @Tags ProductSpecSign
// @Summary 创建产品规格-标志图案工艺说明
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductSpecSign true "创建产品规格-标志图案工艺说明"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /productSpecSign/createProductSpecSign [post]
export const createProductSpecSign = (data) => {
  return service({
    url: '/productSpecSign/createProductSpecSign',
    method: 'post',
    data
  })
}

// @Tags ProductSpecSign
// @Summary 删除产品规格-标志图案工艺说明
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductSpecSign true "删除产品规格-标志图案工艺说明"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productSpecSign/deleteProductSpecSign [delete]
export const deleteProductSpecSign = (params) => {
  return service({
    url: '/productSpecSign/deleteProductSpecSign',
    method: 'delete',
    params
  })
}

// @Tags ProductSpecSign
// @Summary 批量删除产品规格-标志图案工艺说明
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除产品规格-标志图案工艺说明"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productSpecSign/deleteProductSpecSign [delete]
export const deleteProductSpecSignByIds = (params) => {
  return service({
    url: '/productSpecSign/deleteProductSpecSignByIds',
    method: 'delete',
    params
  })
}

// @Tags ProductSpecSign
// @Summary 更新产品规格-标志图案工艺说明
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductSpecSign true "更新产品规格-标志图案工艺说明"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /productSpecSign/updateProductSpecSign [put]
export const updateProductSpecSign = (data) => {
  return service({
    url: '/productSpecSign/updateProductSpecSign',
    method: 'put',
    data
  })
}

// @Tags ProductSpecSign
// @Summary 用id查询产品规格-标志图案工艺说明
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ProductSpecSign true "用id查询产品规格-标志图案工艺说明"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /productSpecSign/findProductSpecSign [get]
export const findProductSpecSign = (params) => {
  return service({
    url: '/productSpecSign/findProductSpecSign',
    method: 'get',
    params
  })
}

// @Tags ProductSpecSign
// @Summary 分页获取产品规格-标志图案工艺说明列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取产品规格-标志图案工艺说明列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /productSpecSign/getProductSpecSignList [get]
export const getProductSpecSignList = (params) => {
  return service({
    url: '/productSpecSign/getProductSpecSignList',
    method: 'get',
    params
  })
}
